package com.example.deertrip;

import androidx.appcompat.app.AppCompatActivity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class Login_main_activity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.login_choosemajor);
        Button choosemajor_user1;
        Button choosemajor_admin1;
        choosemajor_user1=(Button) findViewById(R.id.choosemajor_user);
        choosemajor_admin1=(Button) findViewById(R.id.choosemajor_admin);


        choosemajor_user1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent( Login_main_activity.this, login_user_Activity.class);
                startActivity(intent);
            }
        });
        choosemajor_admin1.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                Intent intent=new Intent( Login_main_activity.this, login_admin_Activity.class);
                startActivity(intent);
            }



//diaozizzh
        });
    }
}